import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity({
    name: 'comment'
})
export class Comment {
    @PrimaryGeneratedColumn()
    comment_id!: number;

    @Column()
    comment_text!: string;

    @Column()
    comment_time!: number;

    @Column()
    comment_father_id!: number;

    @Column()
    article_id!: number;

    // @Column()
    // comment_reply_id!: number;

    @Column()
    user_id!: number;

    @Column()
    user_reply_id!: number;

    @Column()
    user_reply_name!: string;
}